 {extend name="layout:base" /}{block name="content"}

 <?php
$global=isSupperManagerForSession();
 ?>
 <link rel="stylesheet" type="text/css" href="/static/My97DatePicker/skin/WdatePicker.css" />
 <script charset="utf-8" src="/static/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
    .yg_inp>input{margin-bottom: 10px;}
    #zc_detail table{margin:10px;}
    #zc_detail table tr td{
    border: 1px solid #ddd;
    height:40px;
    line-height:40px;
    padding-left:5px;
    padding-right:5px;
    }
    .ordertable input {width:90%;}
    .policeLable{padding:2px 4px;margin-left:4px;}
    #taskDate .taskDateItem{
    width:100%;height:40px;line-height:40px;margin:4px 0px;
    }
    #taskDate .taskDateItem .taskDateItemLeft{width:10%;float:left;}
    #taskDate .taskDateItem .taskDateItemRight1{width:70%;float:left;border:1px solid #139667;height: 42px;}
    #taskDate .taskDateItem .taskDateItemRight2{width:20%;float:right;}
    #taskDate .taskDateItem .opUsers img{width:22px;margin-left:5px;}

    #taskDate .taskDateItem .itemUser{padding: 4px 6px;background:#139667;margin-left:4px;color:white;}
    #taskDate .taskDateItem .clear{clear:both;width:0px;height:0px;overflow:hidden;}
    #taskDate .taskDateItem .jia,#taskDate .taskDateItem .jian{font-size:30px;cursor:pointer;font-weight:800;margin-left:5px;}

    .table tr th{text-align:center;}
</style>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/lang/zh-cn/zh-cn.js"></script>


<section class="topBanners">
         <div class="icon"></div>
         <div class="topBannersNav">
        <span data-url="/admin/hospsection/lists" onclick="ContentLoadGo('/admin/hospsection/lists')">科室管理</span>
         >
         <span data-url="/admin/hospsection/infoData"  onclick="ContentLoadGo('/admin/hospsection/infoData?id=<?php echo $id; ?>')"  >详情</span>
         
         </div>
</section>
 <section id="zc_detail">
     <input type="hidden" value="<?php echo $id; ?>" id="editId" />
   <table class="ordertable" border="0" cellspacing="0" style="width:100%;" cellpadding="0">

       <tr>
           <td width="120"><div align="right">科室名字</div></td>
           <td class="tr_cons">
               <input type="text" name="data[name]" id="name" value="<?php echo $info['name']; ?>" placeholder="" class="textbox" style="padding:0px;" />
           </td>
       </tr>


       <tr>
           <td width="120"><div align="right">是否推荐</div></td>
           <td class="tr_cons">
               <select name="data[hot]" id="hot" class="select">
                   <option value="0" <?php if($info['hot']=='0'){echo 'selected';} ?> >普通</option>
                   <option value="1" <?php if($info['hot']=='1'){echo 'selected';} ?> >推荐</option>
               </select>
           </td>
       </tr>

       <tr>
           <td width="120"><div align="right">是否上架</div></td>
           <td class="tr_cons">
               <select name="data[stats]" id="stats" class="select">
                   <option value="0" <?php if($info['stats']=='0'){echo 'selected';} ?> >上架</option>
                   <option value="1" <?php if($info['stats']=='1'){echo 'selected';} ?> >下架</option>
               </select>
           </td>
       </tr>
       <tr>
           <td><div align="right">图标</div></td>
           <td>
              <?php if($info['img']){echo "<img src='".$info['img']."' style='width:100px;' />";} ?>

           </td>
       </tr>


       <tr>
           <td><div align="right">描述</div></td>
           <td colspan="7">
               <textarea name="data[contents]" id="desc" cols="60" rows="2" style="margin-top:2px;"><?php echo $info['contents']; ?></textarea>
               <div style="font-size:14px;color:red;">提示：不能够超过200个字</div>
           </td>
       </tr>

       <tr>
           <td width="120"><div align="right">排序</div></td>
           <td class="tr_cons">
               <input type="text" name="data[sorts]" id="sorts" value="<?php echo $info['sorts']; ?>" placeholder="" class="textbox" style="padding:0px;width:100px;" />
           </td>
       </tr>
       <tr>
         <td><div align="right">发布时间</div></td>
         <td>
        
            <?php echo date("Y-m-d H:i:s",$info['ctime']); ?>
         </td>
      </tr>
       <tr>
         <td><div align="right">发布人</div></td>
         <td>
            <?php echo $info['UserInfo']['nickname']; ?>
         </td>
      </tr>
   </table>
 </section>
</script>
<script type="text/javascript">
function myResearch(){
   var url="/admin/hospsection/infoData";
   var id=$("#editId").val();
   var page=$("#cpage").val();
   ContentLoadGo(url+"?id="+id+"&page="+page);
}

$(function(){

   $(".research").unbind().bind("click",function(){
       var page =$(this).attr("page");
       $("#cpage").val(page);
       myResearch();
   });

   $(".info").click(function(){
       var that =this;
       var url="/admin/devlist/infoData";
       var id=$(that).parent().parent().attr('data-id');
       var param={
               id:id
       };
       ContentGet(url,param)
   });

   $(".topBannerItem").click(function(){
       var attArr = $(this).attr();
       goToSelfLink(attArr);
   });
});
</script>
{/block}
	  